﻿namespace ufida.u9.ait.openapi
{
	using System;
	using System.Collections.Generic;
	using System.Text; 
	using UFSoft.UBF.AopFrame;	
	using UFSoft.UBF.Util.Context;
    using ufida.u9.ait.openapi.utils;
    using UFIDA.U9.ER.ReimburseBill;

    /// <summary>
    /// ReimburseBillSaveSubmitSV partial 
    /// </summary>	
    public partial class ReimburseBillSaveSubmitSV 
	{	
		internal BaseStrategy Select()
		{
			return new ReimburseBillSaveSubmitSVImpementStrategy();	
		}		
	}
	
	#region  implement strategy	
	/// <summary>
	/// Impement Implement
	/// 
	/// </summary>	
	internal partial class ReimburseBillSaveSubmitSVImpementStrategy : BaseStrategy
	{
		public ReimburseBillSaveSubmitSVImpementStrategy() { }

		public override object Do(object obj)
		{						
			ReimburseBillSaveSubmitSV bpObj = (ReimburseBillSaveSubmitSV)obj;

            return CodeUtils.DocSaveRT(bpObj, bpObj.Data,
                ReimburseBillBase.CreateDoc,
                (doc) =>
                {
                    ReimburseBillBase.SubmitDoc(doc);
                    return doc;
                });
        }		
	}

	#endregion
	
	
}